/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

%link-style {
  display: initial;
  line-height: calc(var(--ifm-font-size-base) + 4px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;

  &:hover {
    border-bottom-color: var(--ifm-color-primary-75);
  }
}

%link-style-dark {
  color: var(--brand);

  &:hover {
    border-bottom-color: var(--ifm-color-primary-75);
  }
}

%hash-link-style {
  &,
  &::before {
    color: var(--subtle);
    border-bottom: 0 !important;
  }
}

%button-link-style {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 32px;
  color: var(--ifm-color-content-secondary);

  &:hover {
    background: var(--ifm-menu-color-background-hover);
    color: var(--ifm-link-color);
  }
}
